﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="GloboCustomRibbon" Location="CommandUI.Ribbon" RegistrationType="List" RegistrationId="10000">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.ListItem.Actions.Controls._children">
          <Button
                  Id="Ribbon.GoogleMapsViewer" Command="openMap"
                  Sequence="11"
                  Image32by32="~site/ReferencesModule/Images/googlemaps.png"
                  Description="View Selected Items"
                  TemplateAlias="o2"
                  LabelText="Open Map"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="openMap" CommandAction="javascript:GoogleMaps.showMap();" EnabledScript="javascript:Util.enableRibbonButtonByMultipleItems(SP.ListOperation.Selection.getSelectedItems().length);"></CommandUIHandler>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>
